<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        #box {
            height: 900px;
            background-color: blueviolet;
        }
        
        #box:target {
            background-color: brown;
            color: chartreuse;
            font-size: 40px;
        }
    </style>
</head>

<body>
    <a href="#box">点击跳到HTML板块</a>
    <div id="box">HTML板块</div>
</body>

</html>